<?php

	/**
	 * @see Bike_Js_Ext_Obj
	 */
	require_once 'Bike/Js/Ext/Obj.php';
	
	
	class Bike_Js_Ext_form_submit_Submit extends Bike_Js_Ext_Obj
	{
		/*protected function getDefaultSettings()
		{
			$js = $this->js();
			return $this->mergeDefaultSettings(parent::getDefaultSettings(), array(
				//'clientValidation' => true,
			    'success' => $js->Ext->form->submit->Success,
				'failure' => $js->Ext->form->submit->Failure,
				//'waitMsg' => 'Waiting..',
			));
		}*/
		
		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$jsExtFormSubmit = $js->Ext->form->submit;
			$this->setSettings(array(
				//'clientValidation' => true,
			    'success' => $jsExtFormSubmit->_clone()->Success,
				'failure' => $jsExtFormSubmit->Failure,
				//'waitMsg' => 'Waiting..',
			));
		}
	}
